﻿using System;

namespace RxjhServer
{
	public class ItmeClass
	{
		private int _FLD_QUESTITEM;

		private int _FLD_PID;

		private int _FLD_NJ;

		private int _FLD_RESIDE1;

		private int _FLD_RESIDE2;

		private int _FLD_SEX;

		private int _FLD_DF;

		private int _FLD_LEVEL;

		private int _FLD_JOB_LEVEL;

		private int _FLD_ZX;

		private int _FLD_AT;

		private int _FLD_AT_Max;

		private int _FLD_MONEY;

		private int _FLD_SIDE;

		private int _FLD_LOCK;

		private int _FLD_TYPE;

		private int _FLD_JF;

		private int _FLD_WEIGHT;

		private string _NAME;

		private int _FLD_MAGIC0;

		private int _FLD_MAGIC1;

		private int _FLD_MAGIC2;

		private int _FLD_MAGIC3;

		private int _FLD_MAGIC4;

		private int _FLD_XW;

		private int _FLD_XWJD;

		private int _FLD_HEAD_WEAR;

		public int FLD_QUESTITEM
		{
			get
			{
				return this._FLD_QUESTITEM;
			}
			set
			{
				this._FLD_QUESTITEM = value;
			}
		}

		public int FLD_PID
		{
			get
			{
				return this._FLD_PID;
			}
			set
			{
				this._FLD_PID = value;
			}
		}

		public int FLD_NJ
		{
			get
			{
				return this._FLD_NJ;
			}
			set
			{
				this._FLD_NJ = value;
			}
		}

		public int FLD_RESIDE1
		{
			get
			{
				return this._FLD_RESIDE1;
			}
			set
			{
				this._FLD_RESIDE1 = value;
			}
		}

		public int FLD_RESIDE2
		{
			get
			{
				return this._FLD_RESIDE2;
			}
			set
			{
				this._FLD_RESIDE2 = value;
			}
		}

		public int FLD_SEX
		{
			get
			{
				return this._FLD_SEX;
			}
			set
			{
				this._FLD_SEX = value;
			}
		}

		public int FLD_DF
		{
			get
			{
				return this._FLD_DF;
			}
			set
			{
				this._FLD_DF = value;
			}
		}

		public int FLD_LEVEL
		{
			get
			{
				return this._FLD_LEVEL;
			}
			set
			{
				this._FLD_LEVEL = value;
			}
		}

		public int FLD_JOB_LEVEL
		{
			get
			{
				return this._FLD_JOB_LEVEL;
			}
			set
			{
				this._FLD_JOB_LEVEL = value;
			}
		}

		public int FLD_ZX
		{
			get
			{
				return this._FLD_ZX;
			}
			set
			{
				this._FLD_ZX = value;
			}
		}

		public int FLD_AT
		{
			get
			{
				return this._FLD_AT;
			}
			set
			{
				this._FLD_AT = value;
			}
		}

		public int FLD_AT_Max
		{
			get
			{
				return this._FLD_AT_Max;
			}
			set
			{
				this._FLD_AT_Max = value;
			}
		}

		public int FLD_MONEY
		{
			get
			{
				return this._FLD_MONEY;
			}
			set
			{
				this._FLD_MONEY = value;
			}
		}

		public int FLD_SIDE
		{
			get
			{
				return this._FLD_SIDE;
			}
			set
			{
				this._FLD_SIDE = value;
			}
		}

		public int FLD_LOCK
		{
			get
			{
				return this._FLD_LOCK;
			}
			set
			{
				this._FLD_LOCK = value;
			}
		}

		public int FLD_TYPE
		{
			get
			{
				return this._FLD_TYPE;
			}
			set
			{
				this._FLD_TYPE = value;
			}
		}

		public int FLD_JF
		{
			get
			{
				return this._FLD_JF;
			}
			set
			{
				this._FLD_JF = value;
			}
		}

		public int FLD_WEIGHT
		{
			get
			{
				return this._FLD_WEIGHT;
			}
			set
			{
				this._FLD_WEIGHT = value;
			}
		}

		public string ItmeNAME
		{
			get
			{
				return this._NAME;
			}
			set
			{
				this._NAME = value;
			}
		}

		public int FLD_MAGIC0
		{
			get
			{
				return this._FLD_MAGIC0;
			}
			set
			{
				this._FLD_MAGIC0 = value;
			}
		}

		public int FLD_MAGIC1
		{
			get
			{
				return this._FLD_MAGIC1;
			}
			set
			{
				this._FLD_MAGIC1 = value;
			}
		}

		public int FLD_MAGIC2
		{
			get
			{
				return this._FLD_MAGIC2;
			}
			set
			{
				this._FLD_MAGIC2 = value;
			}
		}

		public int FLD_MAGIC3
		{
			get
			{
				return this._FLD_MAGIC3;
			}
			set
			{
				this._FLD_MAGIC3 = value;
			}
		}

		public int FLD_MAGIC4
		{
			get
			{
				return this._FLD_MAGIC4;
			}
			set
			{
				this._FLD_MAGIC4 = value;
			}
		}

		public int FLD_XW
		{
			get
			{
				return this._FLD_XW;
			}
			set
			{
				this._FLD_XW = value;
			}
		}

		public int FLD_XWJD
		{
			get
			{
				return this._FLD_XWJD;
			}
			set
			{
				this._FLD_XWJD = value;
			}
		}

		public int FLD_HEAD_WEAR
		{
			get
			{
				return this._FLD_HEAD_WEAR;
			}
			set
			{
				this._FLD_HEAD_WEAR = value;
			}
		}

		public static ItmeClass GetItme(string name)
		{
			foreach (ItmeClass current in World.Itme.Values)
			{
				if (current.ItmeNAME == name)
				{
					return current;
				}
			}
			return null;
		}

		public static string 得到物品名称(int id)
		{
			ItmeClass itmeClass;
			if (World.Itme.TryGetValue(id, out itmeClass))
			{
				return itmeClass.ItmeNAME;
			}
			return "";
		}

		public static ItmeClass GetItmeID(int id)
		{
			ItmeClass result;
			if (World.Itme.TryGetValue(id, out result))
			{
				return result;
			}
			return null;
		}
	}
}
